package vip.zhenzicheng.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;
import vip.zhenzicheng.entity.Order;

/**
 * @author zhenzicheng
 * @DESCRIPTION: 订单mapper
 * @DATE: 2022/04/24 5:27 PM
 */
@Mapper
public interface OrderMapper {

  @Options(useGeneratedKeys = true, keyColumn = "id", keyProperty = "id")
  @Insert("insert into `order`(user_id,pid) values(#{userId},#{pid})")
  int insert(Order order);
}
